import {request} from '@/utils/request.js'
export const getCaptcha  = () => {
    return request({ 
		url:'/base/captcha',
        method: 'post'
    })
}

export const register  = (data) => {
    return request({
		url:'/clientUser/register',
        method: 'post',
        data:data
    })
}

export const login  = (data) => {
    return request({
		url:'/clientUser/login',
        method: 'post',
        data:data
    })
}


export const getUserInfo  = () => {
    return request({
		url:'/clientUser/getUserInfo',
        method: 'get'
    })
}

export const getClientUserList  = () => {
    return request({
		url:'/clientUser/getClientUserList',
        method: 'get'
    })
}
export const getStudentProfileList  = () => {
    return request({
		url:'/SP/getStudentProfileList',
        method: 'get'
    })
}


// SP/getStudentProfileList

// SP/findStudentProfile
// /SP/findStudentProfile
export const findStudentProfile  = (ID) => {
    console.log(ID)
    return request({
		url:'/SP/findStudentProfile?ID='+ID,
        method: 'get',
        params: {ID}, // 传递查询参数
    })
}
// CJ/findStudentScores?ID=1
export const findStudentScores  = (ID) => {
    console.log(ID)
    return request({
		url:'/CJ/findStudentScores?ID='+ID,
        method: 'get',
        params: {ID}, // 传递查询参数
    })
}
// updateStudentScores

export const updateStudentScores  =(data) => {
    // console.log(ID)
    return request({
        url:'/CJ/updateStudentScores',
        method: 'PUT',
        data:data
    })
}
//
// export const login  = (data) => {
//     return request({
//         url:'/clientUser/login',
//         method: 'post',
//         data:data
//     })
// }